On Inner Classes

نویسندگان

  • Atsushi Igarashi
  • Benjamin C. Pierce
چکیده

Inner classes in object-oriented languages play a role similar to nested function definitions in functional languages, allowing an object to export other objects with direct access to its own methods and instance variables. However, the similarity is deceptive: a close look at inner classes reveals significant subtleties arising from their interactions with inheritance. The goal of this work is a precise understanding of the essential features of inner classes; our object of study is a fragment of Java with inner classes and inheritance (and almost nothing else). We begin by giving a direct reduction semantics for this language. We then give an alternative semantics by translation into a yet smaller language with only top-level classes, closely following Java’s Inner Classes Specification. We prove that the two semantics coincide, in the sense that translation commutes with reduction, and that both are type-safe. Comments University of Pennsylvania Department of Computer and Information Science Technical Report No. MSCIS-99-23. This technical report is available at ScholarlyCommons: http://repository.upenn.edu/cis_reports/99 ! #" $ %'&)(+*, $-. /(103254' 6&7" 89& :<;>=@?BA6C6DE;>FGC!HJILK#HGDM=@N,C6;>AoVp c+j U]eg?Jl ;ZeV= j Ug? p crqts>u@s

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

On two classes of third order boundary value problems with finite spectrum

‎The spectral analysis of two classes of third order boundary value problems is investigated‎. ‎For every positive integer $m$ we construct two classes of regular third order boundary value problems with at most $2m+1$‎ ‎eigenvalues‎, ‎counting multiplicity‎. ‎These kinds of finite spectrum results are previously known only for even order boundary value problems‎.

متن کامل

Farabi on virtuousness and Islamic dress, hijab, as a value

Farabi puts those citizens of charity in three classes: the restrainer for the self, the chaste and the virtuous. For him, the classes differ with regard to their manner of producing charity. Though the restrainer for the self based on Inner integrity, legal or religious obligation and self-motivation should be of mor reward, educating the virtuous who do charity easily is necessary for attaini...

متن کامل

Obstacles of Iranian Inner-Cities Gentrification (Case Study: Navvab Project, Tehran, Iran)

One of the results of urban renovation is population displacement. If these renovations lead to live prosperous social classes, it is called gentrification. In this regard one of the urban renovation strategies is gentrification that is equal in "the acceptability of texture in public opinion" and is known as a synonym of "improving the quality of living environment for residents and citizens"....

متن کامل

مقایسه روش‌های شناسایی نوع و مدل وسیله نقلیه با رویکرد کلی‌نگر و جزئی‌نگر و ارائه یک رویکرد جدید

After vehicle detection and vehicle type recognition, it is vehicle make and model recognition (VMMR) that has attracted researchers attention in the last decade. Due to the large number of classes and small inner-class distance, this problem is known as a hard classification problem. In this paper, a comparison between holistic and part-based approaches has been made and most of the previou...

متن کامل

The Class Blueprint A Visualization of the Internal Structure of Classes

Understanding classes is a key activity in object-oriented programming, since classes represent the primary abstractions from which applications are built. The main problem of this task is to quickly grasp the purpose and inner structure of a class. In this paper we discuss the class blueprint, a visualization of the inner structure of classes, first presented in [15].

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Inf. Comput.

دوره 177  شماره 

صفحات  -

تاریخ انتشار 2000